package main

import (
	"bytes"
	"encoding/json"
	"os"
)

func main() {

	data := map[string]int{
		"a": 1,
		"b": 2,
	}
	indent, _ := json.MarshalIndent(data, "=", "\t")
	var out bytes.Buffer

	out.Write(indent)
	//{
	//=	"a": 1,
	//=	"b": 2
	//=}
	out.WriteTo(os.Stdout)
}
